package com.huawei.hwclouds.lubanops.demo.common.exception.common;

/**
 * 当调用http调用服务返回码非200的时候抛出的异常，这个异常不是继承于ErrorCodeException<br>
 *
 * @author y00438022
 * @since 2020年3月2日
 */
public class HttpStatusException extends CommonException {

    private static final long serialVersionUID = 2875230286480558410L;

    private int httpStatus;

    private String content;

    public HttpStatusException(int httpStatus, String content) {
        super(CommonErrorCode.HTTP_STATUS, "http status code:" + httpStatus + ",content:" + content);
        this.httpStatus = httpStatus;
        this.content = content;
    }

    public int getHttpStatus() {
        return httpStatus;
    }

    public String getContent() {
        return content;
    }

}
